home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / editor / vinci21.lha / Vinci / Install < prev    next >
Text File  |  1996-02-03  |  5KB  |  277 lines

  1. ; *******************************************************************
  2. ;
  3. ; $VER: Install-Vinci 2.1 (3.2.96)
  4. ; Install script for Vinci copyright © 1995-1996 Martin Wulffeld
  5. ;
  6. ; *******************************************************************
  7.  
  8. (set old_level @user-level)
  9. (set @default-dest "")
  10.  
  11. (set default_lang 1)
  12.  
  13. (set #bad-kick
  14. (cat "You must at least have Kickstart 2.04 to install Vinci!"
  15. ))
  16.  
  17. (set #copying-reqtoools        "Copying reqtools.library 38.1296 to LIBS:...")
  18. (set #copying-unpack        "Copying unpack.library 42.71 to LIBS:...")
  19. (set #copying-vinci            "Copying Vinci...")
  20. (set #copying-tools            "Copying Support Tools...")
  21. (set #copying-documentation    "Copying Vinci documentation...")
  22. (set #copying-icons            "Copying icons...")
  23. (set #copying-catalogs        "Copying catalogs...")
  24. (set #exchange-icons        "Would you like to exchange the standard icons with the MagicWB icons?")
  25. (set #which-kind            "Which kind?")
  26. (set #select-dest            "Please select the path where you want to install Vinci along with the acompanying documentation and other files. A drawer will be created.")
  27.  
  28. (set #which-language
  29. (cat "\nWhich languages should be installed?"
  30. ))
  31. (set #which-language-help
  32. (cat "\nThe Amiga can be operated in many different"
  33.       " languages. If you want Vinci to use the"
  34.      " same language as the Amiga Workbench"
  35.       " then a catalog file must be copied to your"
  36.       " harddisk for each language supported.\n\n"
  37.       "To reduce the amount of space consumed by the"
  38.       " language files, you can select to have only the"
  39.       " files of specific languages copied.\n\n"
  40.       "Simply check the boxes of the languages you wish"
  41.       " to have available on your system.\n\n"
  42.       @askoptions-help
  43. ))
  44.  
  45. ;=============================================================================
  46. ; Make sure we are running under a 2.04 ROM
  47.  
  48. (if (< (/ (getversion) 65536) 37)
  49. (
  50.     (abort #bad-kick)
  51. ))
  52.  
  53. ;=============================================================================
  54.  
  55. ;*** Required libraries
  56.  
  57. (copylib
  58.     (prompt "\n" #copying-reqtools)
  59.     (help @copylib-help)
  60.     (source "Libs/reqtools.library")
  61.     (dest "LIBS:")
  62.     (confirm)
  63. )
  64.  
  65. (copylib
  66.     (prompt "\n" #copying-unpack)
  67.     (help @copylib-help)
  68.     (source "Libs/unpack.library")
  69.     (dest "LIBS:")
  70.     (confirm)
  71. )
  72.  
  73. ;*** Main files
  74.  
  75. (set programdir
  76.     (tackon
  77.         (askdir
  78.             (prompt  #select-dest)
  79.             (help @askdir-help)
  80.             (default "SYS:")
  81.             (newpath)
  82.         )
  83.         "Vinci"
  84.     )
  85. )
  86.  
  87. (makedir programdir
  88.     (infos)
  89. )
  90.  
  91. (set @default-dest programdir)
  92.  
  93. (copyfiles
  94.     (prompt "\n" #copying-vincifiles)
  95.     (source "Vinci")
  96.     (dest programdir)
  97.     (infos)
  98. )
  99.  
  100. (copyfiles
  101.     (prompt "\n" #copying-vincifiles)
  102.     (source "Vinci_APPICON.info")
  103.     (dest programdir)
  104. )
  105.  
  106. (set toolsdir
  107.     (tackon
  108.         programdir
  109.         "Support Tools"
  110.     )
  111. )
  112.  
  113. (makedir toolsdir
  114.     (infos)
  115. )
  116.  
  117. (copyfiles
  118.     (prompt "\n" #copying-tools)
  119.     (source "Support Tools")
  120.     (pattern "#?")
  121.     (dest toolsdir)
  122.     (infos)
  123. )
  124.  
  125. ;*** Documentation files
  126.  
  127. (set docdir
  128.     (tackon
  129.         programdir
  130.         "Documentation"
  131.     )
  132. )
  133.  
  134. (makedir docdir
  135.     (infos)
  136. )
  137.  
  138. (copyfiles
  139.     (prompt "\n" #copying-documentation)
  140.     (source "Documentation/Vinci.guide")
  141.     (dest docdir)
  142.     (infos)
  143. )
  144.  
  145. (copyfiles
  146.     (prompt "\n" #copying-documentation)
  147.     (source "Documentation/Vinci.regform")
  148.     (dest docdir)
  149.     (infos)
  150. )
  151.  
  152. ;*** Copy icons
  153.  
  154. (set iconsdir
  155.     (tackon
  156.         programdir
  157.         "MagicWB Icons"
  158.     )
  159. )
  160.  
  161. (makedir iconsdir
  162.     (infos)
  163. )
  164.  
  165. (copyfiles
  166.     (prompt "\n" #copying-icons)
  167.     (source "MagicWB Icons")
  168.     (pattern "#?")
  169.     (dest iconsdir)
  170.     (infos)
  171. )
  172.  
  173. ;*** Exchange with MagicWB icons
  174.  
  175. (set mwbicons
  176.     (askbool
  177.         (prompt "\n" #exchange-icons)
  178.         (help "")
  179.     )
  180. )
  181.  
  182. (if mwbicons
  183. (
  184.     (set whichkind
  185.         (askchoice
  186.             (prompt "\n" #which-kind)
  187.             (help "")
  188.             (choices "Ancient" "Modern")
  189.         )
  190.     )
  191.     
  192.     (if (= whichkind 0)
  193.         (
  194.             (set magicwbdir
  195.                 (tackon
  196.                     iconsdir
  197.                     "Ancient"
  198.                 )
  199.             )
  200.             (copyfiles
  201.                 (prompt "\n" #copying-icons)
  202.                 (source magicwbdir)
  203.                 (pattern "#?")
  204.                 (dest programdir)
  205.             )
  206.         )
  207.         (
  208.             (set magicwbdir
  209.                 (tackon
  210.                     iconsdir
  211.                     "Modern"
  212.                 )
  213.             )
  214.             (copyfiles
  215.                 (prompt "\n" #copying-icons)
  216.                 (source magicwbdir)
  217.                 (pattern "#?")
  218.                 (dest programdir)
  219.             )
  220.         )
  221.     )
  222. ))
  223.  
  224. ;*** Copy Catalogs
  225.  
  226. (set catalogdir
  227.     (tackon
  228.         programdir
  229.         "Catalogs"
  230.     )
  231. )
  232.  
  233. (makedir catalogdir
  234. )
  235.  
  236. (copyfiles
  237.     (prompt "\n" #copying-catalogs)
  238.     (source "Catalogs")
  239.     (pattern "#?")
  240.     (dest catalogdir)
  241. )
  242.  
  243. (if (exists "SYS:Locale")
  244. (
  245.     (if (exists "LOCALE:")
  246.     (
  247.         (set lang (askoptions (prompt #which-language)
  248.                                 (help #which-language-help)
  249.                                 (choices
  250.                                     "English")
  251.                                 (default default_lang)
  252.                     )
  253.         )
  254.         
  255.         (set n 0)
  256.         (while
  257.             (set language (select n
  258.                                 "")
  259.             )
  260.         (
  261.             (if (IN lang n)
  262.             (
  263.                 (if (< n 1)
  264.                 (
  265.                     (makedir (cat "LOCALE:Catalogs/" language))
  266.                     (copyfiles (source (cat "Catalogs/" language))
  267.                                 (dest (cat "LOCALE:Catalogs/" language))
  268.                                 (all)
  269.                     )
  270.                 ))
  271.             ))
  272.             (set n (+ n 1))
  273.         ))
  274.     ))
  275. ))
  276.